package com.liuda.workbench.service.impl;

import com.liuda.workbench.domain.Customer;
import com.liuda.workbench.mapper.CustomerMapper;
import com.liuda.workbench.service.CustomerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CustomerServiceImpl implements CustomerService {
    @Autowired
    CustomerMapper customerMapper;
    @Override
    public List<String> queryCustomerNameByLike(String name) {
        return customerMapper.queryCustomerNameByLike(name);
    }

    @Override
    public List<Customer> selectAllForDetail() {
        return customerMapper.selectAllForDetail();
    }

    @Override
    public Customer selectForDetailById(String id) {
        return customerMapper.selectForDetailById(id);
    }

}
